<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">
<h:head></h:head> 
<body> 
<p:dataGrid var="r" value="#{PersonalizeMgr.currentRoomList}" columns="1" rows="12" paginator="true">
           <p:panel>
              <h:panelGrid columns="2">
              	
              		<h:outputLabel for="roomNumber" value="Numero di camera:" />
                  	<h:outputText value="#{r.roomNumber}" />
                  	
                  	<h:outputLabel for="beds" value="Numero di letti" />
                  	<h:outputText value="#{r.beds}" />
                  	
               </h:panelGrid>
           </p:panel>
  </p:dataGrid>
		<h:form>
					<p:row>
						<p:column>
        					<p:selectOneMenu value="#{PersonalizeMgr.beds}">  
            					<f:selectItem itemLabel="Select One" itemValue="" />  
					            <f:selectItem itemLabel="Singola" itemValue="1" />  
					            <f:selectItem itemLabel="Doppia" itemValue="2" />  
					            <f:selectItem itemLabel="Matrimoniale" itemValue="2" />
					            <f:selectItem itemLabel="Tripla" itemValue="3" /> 
					            <f:selectItem itemLabel="Quadrupla" itemValue="4" />  
        					</p:selectOneMenu>	
        					<p:row>
						        <p:column colspan="2">
						               	<h:commandButton action="#{PersonalizeMgr.setRoom()}" value="Seleziona la camera" />
						               	<h:commandButton action="#{PersonalizeMgr.goToRecap()}" value="Completa la prenotazione" />
						               	
						      	</p:column>
						    </p:row>
						                  
						</p:column>
					</p:row>
			</h:form>
	
</body> 
</html>
